import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * Clase BotonRecord.
 * 
 * @author Andrés Cruz Santiago  ,Jesús Aurelio Hrnández Aguilar
 * @version 04/07/13
 */
public class BotonRecord extends Actor
{    
    /**
     * Act - do whatever the BotonAtras wants to do. This method is called whenever
     * the 'Act' or 'Run' button gets pressed in the environment.
     */
    public void act() 
    {
        // Add your action code here.
        selecionado();
    } 
    
    /**
     * Pinta la Ventana de Records
     */
    public void selecionado()
    {
        if(Greenfoot.mouseClicked(this))
             Greenfoot.setWorld(new Records());
    }  
}
